

{extend name="common/form" /}
{block name="form" /}
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
    <div class="widget am-cf">
        <div class="widget-head am-cf">
            <div class="widget-title am-fl">添加代理</div>
        </div>
        <div class="widget-body am-fr">
            <form class="am-form tpl-form-border-form tpl-form-border-br">
                <div class="am-form-group">
                    <label for="user-name" class="am-u-sm-3 am-form-label">
                        代理名字                    </label>
                    <div class="am-u-sm-9">
                        <input type="text" name="name" value="{present name='$info.name'}{$info.name}{/present}" required="required" class="tpl-form-input" placeholder="请填写名字">
                    </div>
                </div>
                {present name='$info.id'}<input type="hidden" name="id" value="{$info.id}">{/present}
                <div class="am-form-group">
                    <label for="user-name" class="am-u-sm-3 am-form-label">
                        升级所需要费用                    </label>
                    <div class="am-u-sm-9">
                        <input type="text" name="price" value="{present  name="$info.price"}{$info.price/100}{/present}" required="required" class="tpl-form-input" placeholder="请填写升级所需要费用">
                    </div>
                </div>
                <div class="am-form-group">
                    <label for="user-name" class="am-u-sm-3 am-form-label">
                        话费分成
                    </label>
                    <div class="am-u-sm-9">
                        <input type="text" name="phone_divide" value="{present name='$info.phone_divide'}{$info.phone_divide}{/present}" required="required" class="tpl-form-input" placeholder="请填写话费分成">
                    </div>
                </div>
                <div class="am-form-group">
                    <label for="user-name" class="am-u-sm-3 am-form-label">
                        消费分成                    </label>
                    <div class="am-u-sm-9">
                        <input type="text" name="consume_divide" value="{present name='$info.consume_divide'}{$info.consume_divide}{/present}" required="required" class="tpl-form-input" placeholder="请填写消费分成">
                    </div>
                </div>
                <div class="am-form-group">
                    <label for="user-name" class="am-u-sm-3 am-form-label">
                        需要推广多少人数                    </label>
                    <div class="am-u-sm-9">
                        <input type="text" name="recommend" value="{present name='$info.recommend'}{$info.recommend}{/present}" required="required" class="tpl-form-input" placeholder="请填写需要推广多少人数">
                    </div>
                </div>
                <div class="am-form-group">
                    <label for="user-name" class="am-u-sm-3 am-form-label">
                        备注                    </label>
                    <div class="am-u-sm-9">
                        <input type="text" name="remarks" value="{present name='$info.remarks'}{$info.remarks}{/present}" required="required" class="tpl-form-input" placeholder="请填写备注">
                    </div>
                </div>
                <div class="am-form-group">
                    <label for="user-name" class="am-u-sm-3 am-form-label">
                        补贴金额                    </label>
                    <div class="am-u-sm-9">
                        <input type="text" name="subsidy" value="{present name='$info.subsidy'}{$info.subsidy}{/present}" required="required" class="tpl-form-input" placeholder="请填写补贴金额">
                    </div>
                </div>
                <div class="am-form-group">
                    <div class="am-u-sm-9 am-u-sm-push-3">
                        <button type="button" onclick="add('{:url($type)}','form')" class="am-btn am-btn-primary tpl-btn-bg-color-success" >
                            提交
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

{/block}
{extend}
